package com.briup.day11.abBean;

public abstract class Animal {
    private int age;
    private String color;
    public  Animal(String color , int age) {
        this.age=age;
        this.color=color;
    }

    public Animal() {
    }

    @Override
    public String toString() {
        return "Animal{" +
                "age=" + age +
                '}';
    }
    public abstract void eat();
    public abstract void sleep();
}
